package cn.cloudtogo.support.redis;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author yaolianhua789@gmail.com
 **/
@Data
public class RedisExternalDatasourceCreateParam {

    @NotBlank(message = "url is null")
    private String url;

    private String project;

    @NotBlank(message = "open id is null")
    private String openid;

    @JsonProperty("database")
    private int schema;

    @NotBlank(message = "component name is null")
    @JsonProperty("component")
    private String name;

}
